package app1.rapidsquare.com.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import app1.rapidsquare.com.activity.R;
import app1.rapidsquare.com.fragment.HowItWorksFragment;

/**
 * Created by Hikmat on 04.09.2014.
 */
public class HowItWorksAdapter extends FragmentStatePagerAdapter {

    protected static final int[] IMAGES = new int[]{
            R.drawable.first,
            R.drawable.second,
            R.drawable.third
    };

    public HowItWorksAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        return HowItWorksFragment.newInstance(IMAGES[position]);
    }

    @Override
    public int getCount() {
        return IMAGES.length;
    }
}
